#include <stdio.h>
#include <math.h>

int main()
{
    int n,x,m,y;
    char ch;

    printf("Please input the secret KEY:");
    scanf("%d",&n);
    getchar();
    printf("Please input a character:");
    scanf("%c",ch);
    m=fabs(n);
    if(n<0)
    {
        if(m<=26)
        x=(int)ch+m;
        else
        y=26-m%26;
        x=(int)ch+y;
    }
    else
    {
        if(m<=26)
        x=(int)ch+m;
        else
        y=26-m%26;
        x=(int)ch+y;
    }


    printf("The encrypted character is:%c\n",x);
    return 0;
}